#!/bin/bash
sleep 10
export APP_NAME="newbee-mall-api-3.0.0-SNAPSHOT.jar"
export PID=`ps -ef|grep java|grep $APP_NAME|awk '{print $2}'`
export pwd=`pwd`
if [ "${PID}" != "0000" ]
then
  B=`cat $pwd/logs.out|grep 'JVM running for' |wc -l`
  if [ $B -gt 0 ]
  then
    echo '已经完成部署'
  else
    echo '部署失败'
  fi
fi
